import Layout from '@/layout'
export default {
  path: '/employees',
  name: 'employees',
  component: Layout,
  children: [
    {
      path: '',
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      path: 'detail/:detailId',
      name: 'detail',
      component: () => import('@/views/employees/detail'),
      hidden: true,
      props: true,
      meta: { title: '员工详情' }
    },
    {
      path: 'print/:id/:type',
      name: 'print',
      component: () => import('@/views/employees/print'),
      hidden: true,
      props: true,
      meta: { title: '员工打印' }
    }
  ]
}

// 当你的访问地址 是 /employees的时候 layout组件会显示 此时 你的二级路由的默认组件  也会显示

